<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>公告</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <!-- 当前页面样式 -->
    <link rel="stylesheet" href="<s:url value="/css/common.css"/>"/>
    <!-- 当前页面样式 END -->
    <script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js"/>"></script>
</head>
<body>

    <div class="notice">
    	<s:iterator value="#request.searchRsList" var="an">
    			 <div class="notice-list"   onclick="showPosInfoWindow('<s:property value="#an.id"/>')">
		            <div class="notice-hd">
		                <div class="notice-headline"><s:property value="#an.title"/> </div>
		                <div class="notice-time">
		                	<fmt:formatDate value="${an.dtCreate}" type="date"/>
		                </div>
		            </div>
		            <div class="notice-cnt">
		                <p><s:property value="#an.contentce"/> </p>
		            </div>
		        </div>
    	</s:iterator>
    </div>

    <script>

        function showPosInfoWindow(thisId){ 
            var ScreenWidth = screen.availWidth ;
            var ScreenHeight = screen.availHeight; 
            var StartX = (ScreenWidth - innerWidth) / 2 ;
            var StartY = (ScreenHeight - innerHeight) / 2 ;
       	 var url =  "<%=basePath %>announce/viewAnnounce.ct?announce.id="+thisId;
       	 window.open(url, '查看详情', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no'); 
        } 
    </script>
</body>
</html>